package homework;

public class AnimalTest {
    public static void main(String[] args) {
        Dog dog1 = new Dog("小黑", 2, "黑");
        dog1.eat();
        dog1.drink();
        dog1.lookHome();
        System.out.println();
        Dog dog2 = new Dog("小白", 1, "白");
        dog2.eat();
        dog2.drink();
        dog2.lookHome();
        System.out.println();
        Dog dog3 = new Dog("小强", 2, "黑白");
        dog3.eat();
        dog3.drink();
        dog3.lookHome();
        System.out.println();
        Chick chick = new Chick("花花",1,"棕");
        chick.eat();
        chick.drink();
        chick.layEggs();
        System.out.println();
        Fish fish = new Fish("金金",2,"金");
        fish.eat();
        fish.drink();



    }

    public static void pick(String opt) {
        if (opt == "Dog") {
            Dog dog = new Dog();
        } else if (opt == "Chick") {
            Chick chick = new Chick();
        } else if (opt == "Fish") {
            Fish fish = new Fish();
        }
    }

}
